package com.yx.front.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 留言记录表
 * </p>
 *
 * @author YangXiong
 * @since 2023-04-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("tb_message_record")
@ApiModel(value="MessageRecord对象", description="留言记录表")
public class MessageRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "发送人id")
    private Long fromId;

    @ApiModelProperty(value = "接收人id")
    private Long toId;

    @ApiModelProperty(value = "消息内容")
    private String context;

    @ApiModelProperty(value = "发送时间")
    private Date sendTime;

    @ApiModelProperty(value = "上一次已读标志")
    private Integer flag;

    @ApiModelProperty(value = "是否删除 0 未删 1 已删")
    private Integer isDelete;


}
